package com.zd.commodity.productMng.entity;

import java.sql.Timestamp;
import java.util.Set;

import com.alibaba.fastjson.annotation.JSONField;
import com.zd.commodity.categoryMng.entity.Category;


/**
 * ProductAttr entity. @author MyEclipse Persistence Tools
 */

public class ProductAttr implements java.io.Serializable {

	// Fields

	private Long id;
	private String name;
	private String isKeyAttr;
	private Timestamp creationTime;
	private Timestamp updateTime;
	private String creator;
	private String updater;
	private Category category;
	private Long groupId;
	@JSONField(serialize=false)
	private Set<ProductAttrDict> attrDicts;
	// Constructors


	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public String getIsKeyAttr() {
		return this.isKeyAttr;
	}

	public void setIsKeyAttr(String isKeyAttr) {
		this.isKeyAttr = isKeyAttr;
	}

	public Timestamp getCreationTime() {
		return this.creationTime;
	}

	public void setCreationTime(Timestamp creationTime) {
		this.creationTime = creationTime;
	}

	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getUpdater() {
		return this.updater;
	}

	public void setUpdater(String updater) {
		this.updater = updater;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public Set<ProductAttrDict> getAttrDicts() {
		return attrDicts;
	}

	public void setAttrDicts(Set<ProductAttrDict> attrDicts) {
		this.attrDicts = attrDicts;
	}

	public Long getGroupId() {
		return groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

}